Skip to main content

getResource

Type

function

Summary

Returns the data in a Mac OS resource.

Syntax

getResource(<filePath>, <resourceType>,{<resourceName> | <resourceID>})

Description

Use the getResource function to get the contents of a resource.

Parameters

NameTypeDescription

filePath

The location and name of the file that holds the resource you want. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder.

resourceType

The 4-character type of the resource you want.

resourceName

string

resourceID

integer

Examples

getResource("/Hard Drive/Stuff","DLOG",128)
getResource(it,"BNDL","Application")

control structure: function

function: result, setResource

glossary: resource fork, resource, Mac OS, return

keyword: file

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?